package org.dromara.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 数据行实体类，对应数据库表中的一行数据
 */
@Data
@NoArgsConstructor
public class DataRow {
    private LocalDateTime timestamp;
    private String projectId;
    private String devId;
    private String type;
    private int sequence;
    private String fileName;
    private int duration;
    private String status;
    private int taskId;
    private String deleteStatus;
    private String timeUnit;

    public DataRow(LocalDateTime timestamp, String projectId, String devId, String type,
                   int sequence, String fileName, int duration, String status,
                   int taskId, String deleteStatus, String timeUnit) {
        this.timestamp = timestamp;
        this.projectId = projectId;
        this.devId = devId;
        this.type = type;
        this.sequence = sequence;
        this.fileName = fileName;
        this.duration = duration;
        this.status = status;
        this.taskId = taskId;
        this.deleteStatus = deleteStatus;
        this.timeUnit = timeUnit;
    }

}
